from aspen import Response from gittip.utils import get_participant from gittip import AMOUNTS # ========================================================================== ^L participant = get_participant(request, restrict=True) hero = "Widgets" title = "%s - %s" % (participant.username, hero) locked = False # ========================================================================== ^L {% extends "templates/profile.html" %} {% block page %}
Use this code to embed a Gittip button on your website:
<iframe style="border: 0; margin: 0; padding: 0;"
src="https://www.gittip.com/{{ participant.username }}/widget.html"
width="48pt" height="22pt"></iframe>
The button opens your profile on Gittip in a new tab or window. Here's what the text reads:
Here's an example using whit537:
Use this code to add a Gittip “receiving” widget on your website:
<script data-gittip-username="{{ participant.username }}"
src="https://www.gittip.com/assets/widgets/0002.js">
</script>
Here's what it looks like: